-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dts: renesas_ra: Changing to describe clocks with DeviceTree's standard manner #78365
dts: renesas_ra: Changing to describe clocks with DeviceTree's standard manner #78365
Conversation
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
d782c9b
to
8320b5d
Compare
* @return the node's full name with unit-address as a sequence of tokens, | ||
* with no quotes | ||
*/ | ||
#define DT_NODE_FULL_NAME_UNQUOTED(node_id) DT_CAT(node_id, _FULL_NAME_UNQUOTED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add tests and macros.bnf if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the review. I forgot about it. I've added it, so please check it again.
adf82ef
to
7006d58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the implementation
Thank you for your review. Please check also zephyrproject-rtos/hal_renesas#36. |
f775934
to
44746f5
Compare
Update HAL to improve the BSP clock setting process. Signed-off-by: TOKITA Hiroshi <[email protected]>
Like some other string properties, I will add a derived form to FULL_NAME to make it easier to reference from macros. Signed-off-by: TOKITA Hiroshi <[email protected]>
Changes the path name of a DTS node so that it can be used as the stem of a BSP macro. All nodes to be changed are referenced via labels, so only the name is changed. Signed-off-by: TOKITA Hiroshi <[email protected]>
DeviceTree typically references the clock source using the `clocks` property defined in `base.yaml`, so we'll change it to this. Also delete the custom clock source definitions in `renesas,ra-cgc-pclk-block.yaml`, `renesas,ra-cgc-pclk.yaml`, and `renesas,ra-cgc-pll.yaml`. Signed-off-by: TOKITA Hiroshi <[email protected]>
Move the process of replacing numerical values with macros to the header, and set the division ratio in a numeric without using macros in the device tree. Change `clk-div` defined in `renesas,ra-cgc-pclk.yaml` to `div`. Signed-off-by: TOKITA Hiroshi <[email protected]>
Adding the macros `RA_CGC_CLK_SRC` and `RA_CGC_CLK_DIV` that derive the BSP clock settings from the DeviceTree node settings. I also define some aliases to fill in the gaps with the BSP naming conventions. Signed-off-by: TOKITA Hiroshi <[email protected]>
44746f5
to
9c5ef6b
Compare
This needs to be merged before #78959 (or any other PR that includes hal-renesas updating). |
The hal module has been updated so it has been rebased. |
@nordic-krch |
DeviceTree typically references the clock source using the
clocks
property defined in
base.yaml
, so we'll change it to this.Move the process of replacing numerical values with macros to
the header, and set the division ratio in a numeric without
using macros in the device tree.